package com.woniuxy.springboottest.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * @author linke
 * @version 1.0
 * @className: DBEntity
 * @description: 数据库信息 实体类  测试从配置文件中 获取数据库配置信息
 * @date 2021/11/16 17:23
 */
@Data
@Component
@ConfigurationProperties(prefix = "datasource")
public class DBEntity {
    private String driver;
    private String url;
    private String user;
    private String password;
}